package router

import (
	"github.com/gin-gonic/gin"
	"go_es/server/api"
)

type WeiBoRouter struct {
}

func (w *WeiBoRouter) InitWeiBoRouter(Router *gin.RouterGroup) {

	weiboRouter := Router.Group("weibo")
	weiboApi := api.ApiGroupApp.WeiboApi
	weiboRouter.GET("index", weiboApi.GetWeiboIndex)
	weiboRouter.POST("addWeibo", weiboApi.AddWeibo)
	weiboRouter.GET("searchWeibo", weiboApi.SearchWeibo)
}
